<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{$row.start_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{$row.end_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
           {:build_radios('row[status]', ['1'=>__('zStatus 1'), '2'=>__('zStatus 2')],$row.status)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status_school')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status_school]', ['1'=>__('Status_school 1'), '2'=>__('Status_school 2')],$row.status_school)}
        </div>
    </div>
      <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('限制来源')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_source]', ['1'=>__('限制'), '2'=>__('不限制')],$row.is_source)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('验证小鹅通数据')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[veri]', ['1'=>__('验证'), '2'=>__('不验证')],$row.veri)}
        </div>
    </div>
    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('小鹅通数据')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-alipay" class="form-control" size="50" name="row[verifile]" type="text" value="{$row.verifile}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-alipay" class="btn btn-danger plupload" data-url="{:url('ajax/upload')}" data-input-id="c-alipay" data-mimetype="xls,xlsx,csv" data-multiple="false" data-preview-id="p-alipay"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ok_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" id="c-ok_rate" class="form-control single-slider" name="row[ok_rate]" value="{$row.ok_rate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Template')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-template" class="form-control  form-control"  name="row[template]" type="text" value="{$row.template}">
        </div>
    </div>
    <input type="hidden"  name="row[z_publish]" value="50">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-desc" class="form-control" name="row[desc]">{$row.desc}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
